﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="appointment.aspx.cs" Inherits="Project.appointment" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
     <table style="width:100%;">
        <tr>
            <td style="width: 331px; text-align: right">
                Select a Campus:<asp:DropDownList ID="dd_location" runat="server" Height="21px" Width="172px" 
                    AutoPostBack="True" 
                    onselectedindexchanged="dd_location_SelectedIndexChanged">
                     <asp:ListItem>Select</asp:ListItem>
                     <asp:ListItem>Progress Campus</asp:ListItem>
                <asp:ListItem>Morningside Campus</asp:ListItem>
                <asp:ListItem>Ashtonbe Campus</asp:ListItem>
                <asp:ListItem>CCC Campus</asp:ListItem>
                </asp:DropDownList>
            </td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 331px; text-align: right">
                Select an Advisor:<asp:DropDownList ID="dd_advisorname" runat="server" 
                    onselectedindexchanged="dd_advisorname_SelectedIndexChanged" Height="21px" 
                    Width="162px">
                </asp:DropDownList>
                </td>
            <td>
                <asp:SqlDataSource ID="SqlDataSource3" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:StudentAdvisorString %>" 
                    SelectCommand="SELECT [name] FROM [advisorinfo] WHERE ([location] = @location)">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="dd_location" Name="location" 
                            PropertyName="SelectedValue" Type="String" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td style="width: 331px; height: 35px;">
                <asp:Calendar ID="Calendar1" runat="server" BackColor="White" 
                    BorderColor="#3366CC" CellPadding="1" DayNameFormat="Shortest" 
                    Font-Names="Verdana" Font-Size="8pt" ForeColor="#003399" Height="200px" 
                    onselectionchanged="Calendar1_SelectionChanged" Width="220px" 
                    Visible="False" BorderWidth="1px">
                    <DayHeaderStyle BackColor="#CCCCCC" Font-Bold="True" Font-Size="7pt" />
                    <NextPrevStyle VerticalAlign="Bottom" />
                    <OtherMonthDayStyle ForeColor="#808080" />
                    <SelectedDayStyle BackColor="#666666" Font-Bold="True" ForeColor="White" />
                    <SelectorStyle BackColor="#CCCCCC" />
                    <TitleStyle BackColor="#999999" BorderColor="Black" Font-Bold="True" />
                    <TodayDayStyle BackColor="#CCCCCC" ForeColor="Black" />
                    <WeekendDayStyle BackColor="#FFFFCC" />
                </asp:Calendar>
            </td>
            <td style="height: 35px; ">
                <%--<asp:GridView ID="GridView2" runat="server" BackColor="White" 
                    BorderColor="#3366CC" BorderStyle="None" BorderWidth="1px" CellPadding="4" 
                    onselectedindexchanged="GridView2_SelectedIndexChanged" Width="100%" >
                    <FooterStyle BackColor="#99CCCC" ForeColor="#003399" />
                    <HeaderStyle BackColor="#003399" Font-Bold="True" ForeColor="#CCCCFF" />
                    <PagerStyle BackColor="#99CCCC" ForeColor="#003399" HorizontalAlign="Left" />
                    <RowStyle BackColor="White" ForeColor="#003399" />
                    <SelectedRowStyle BackColor="#009999" Font-Bold="True" ForeColor="#CCFF99" />
                    <SortedAscendingCellStyle BackColor="#EDF6F6" />
                    <SortedAscendingHeaderStyle BackColor="#0D4AC4" />
                    <SortedDescendingCellStyle BackColor="#D6DFDF" />
                    <SortedDescendingHeaderStyle BackColor="#002876" />
                   
                </asp:GridView>--%>
                <asp:Panel ID="Panel1" runat="server" Height="221px" Visible="False" 
                    Width="300px">
                    <table style="width:100%;">
                        <tr>
                            <td style="width: 82px">
                                <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="8:30" 
                                    Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button2" runat="server"  Text="9:00" onclick="Button2_Click" 
                                    Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button3" runat="server" Text="9:30" onclick="Button3_Click" 
                                    Width="70px" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 82px">
                                <asp:Button ID="Button4" runat="server" Text="10:00" onclick="Button4_Click" 
                                    Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button5" runat="server" Text="10:30" onclick="Button5_Click" 
                                    Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button6" runat="server" Text="11:00" onclick="Button6_Click" 
                                    Width="70px" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 82px">
                                <asp:Button ID="Button7" runat="server" Text="11:30" onclick="Button7_Click" 
                                    Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button8" runat="server" Text="12:00" onclick="Button8_Click" 
                                    Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button9" runat="server" Text="12:30" onclick="Button9_Click" 
                                    Width="70px" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 82px">
                                <asp:Button ID="Button10" runat="server" Text="13:00" 
                                    onclick="Button10_Click" Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button11" runat="server" Text="13:30" 
                                    onclick="Button11_Click" Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button12" runat="server" Text="14:00" 
                                    onclick="Button12_Click" Width="70px" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 82px">
                                <asp:Button ID="Button13" runat="server" Text="14:30" 
                                    onclick="Button13_Click" Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button14" runat="server" Text="15:00" 
                                    onclick="Button14_Click" Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button15" runat="server" Text="15:30" 
                                    onclick="Button15_Click" Width="70px" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 82px">
                                <asp:Button ID="Button16" runat="server" Text="16:00" 
                                    onclick="Button16_Click" Width="70px" />
                            </td>
                            <td>
                                <asp:Button ID="Button17" runat="server" Text="16:30" 
                                    onclick="Button17_Click" Width="70px" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                    </table>
                </asp:Panel>
                <br />
            </td>
        </tr>
        <tr>
            <td style="width: 331px; text-align: right; height: 35px;">
                Description:</td>
            <td style="height: 35px; ">
                <asp:TextBox ID="txt_desc" runat="server" Height="100px" Width="408px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td style="width: 331px; text-align: right; height: 35px;">
                &nbsp;</td>
            <td style="height: 35px; ">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="width: 331px; text-align: right; height: 35px;">
                &nbsp;</td>
            <td style="height: 35px; ">
                &nbsp;</td>
        </tr>
        <tr>
            <td style="text-align: center" colspan="2">
                <asp:Label ID="Label1" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                <br />
            </td>
        </tr>
        <tr>
            <td style="width: 331px; text-align: right">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    </div>
    </form>
</body>
</html>
